package com.min.star.model;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("sys_curriculum")
public class Curriculum extends BaseEntity implements Serializable {
       
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long id;
	
	@TableField("cur_name")
	@NotBlank(message = "{curriculum.curName.required}")
	private String curName;
	
	@TableField("tea_id")
	//@NotBlank(message = "{curriculum.teaId.required}")
	private Long teaId;
	
	@TableField("cur_credit")
	@NotBlank(message = "{curriculum.curCredit.required}")
	private String curCredit;
	
	@TableField("cur_times")
	@NotBlank(message = "{curriculum.curTimes.required}")
	private String curTimes;
	
	@TableField("cur_location")
	@NotBlank(message = "{curriculum.curLocation.required}")
	private String curLocation;

	@TableField(exist = false)
	private Teacher teacher;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCurName() {
		return curName;
	}

	public void setCurName(String curName) {
		this.curName = curName;
	}

	public Long getTeaId() {
		return teaId;
	}

	public void setTeaId(Long teaId) {
		this.teaId = teaId;
	}

	public String getCurCredit() {
		return curCredit;
	}

	public void setCurCredit(String curCredit) {
		this.curCredit = curCredit;
	}

	public String getCurTimes() {
		return curTimes;
	}

	public void setCurTimes(String curTimes) {
		this.curTimes = curTimes;
	}

	public String getCurLocation() {
		return curLocation;
	}

	public void setCurLocation(String curLocation) {
		this.curLocation = curLocation;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
}
